package com.qianfeng.myymatou.utils;

import android.util.Log;

/**
 * ***********************************************************
 * author: alex
 * time: 16/7/4 上午11:56
 * name:
 * overview:
 * usage:
 * *************************************************************
 */
public class LogUtils {

    public static String TAG = "tag";
    //为了安全性的考虑：为了避免客户看到一些 敏感，隐私的信息
    //1.如果是调试的时候：改为true
    //2.如果上线的时候：改为false
    public static boolean isDebug = true;

    public static void i(String msg) {
        if (isDebug) {
            Log.i(TAG, msg);
        }
    }

    public static void i(String tag, String msg) {
        if (isDebug) {
            Log.i(tag, msg);
        }
    }

    public static void e(String msg) {
        if (isDebug) {
            Log.e(TAG, msg);
        }
    }
}
